package GUI.Dog;

import java.awt.Color;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import javax.swing.border.LineBorder;

import GUI.Course.CourseManage;
import GUI.Report.ReportManage;
import GUI.Test.TestManage;

public class ShowDogCard extends JFrame{

	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	public ShowDogCard(String dogname, String Gender, int i, String Mother, String Father, String Comments,String DateOfBirth) {
    	setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(600, 500);
		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		setTitle("\u05D4\u05E6\u05D2\u05EA \u05DB\u05DC\u05D1");
		getContentPane().setLayout(null);
		
		JButton button_2 = new JButton("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		button_2.setFont(new Font("David", Font.PLAIN, 14));
		button_2.setBounds(431, 178, 111, 23);
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setVisible(false);
				CourseManage coursewindow=new CourseManage();
				coursewindow.setVisible(true);
				
				
				
			}
		});
		getContentPane().setLayout(null);
		getContentPane().add(button_2);
		
		JButton button_1 = new JButton("\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		button_1.setFont(new Font("David", Font.PLAIN, 14));
		button_1.setBounds(431, 292, 111, 23);
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				TestManage testwindow=new TestManage();
				testwindow.setVisible(true);
				
			}
		});
		getContentPane().add(button_1);
		
		JButton button = new JButton("\u05D3\u05D5\u05D7\u05D5\u05EA");
		button.setFont(new Font("David", Font.PLAIN, 14));
		button.setBounds(431, 236, 111, 23);
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				ReportManage reportwindow=new ReportManage();
				reportwindow.setVisible(true);
			}
		});
		getContentPane().add(button);
		
		JButton btnNewButton = new JButton("\u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		btnNewButton.setBounds(431, 118, 111, 23);
		btnNewButton.setFont(new Font("David", Font.BOLD, 16));
		btnNewButton.setBackground(UIManager.getColor("Button.background"));
		getContentPane().add(btnNewButton);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				DogManage dogwindow=new DogManage();
				dogwindow.setVisible(true);
				
			}
		});
	
	
		JPanel panel = new JPanel();
		panel.setBounds(60, 11, 315, 392);
		panel.setToolTipText("\u05D4\u05E6\u05D2\u05EA \u05DB\u05DC\u05D1\r\n" );
		panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		getContentPane().add(panel);
		panel.setLayout(null);
		
		JLabel label = new JLabel("\u05E9\u05DD \u05D4\u05DB\u05DC\u05D1:"+   dogname);
		label.setFont(new Font("David", Font.PLAIN, 14));
		label.setBounds(84, 81, 212, 14);
		panel.add(label);
		label.setHorizontalAlignment(SwingConstants.RIGHT);
		

		JLabel label_1 = new JLabel("\u05DE\u05D9\u05DF:"+   Gender);
		label_1.setFont(new Font("David", Font.PLAIN, 14));
		label_1.setBounds(107, 134, 189, 14);
		panel.add(label_1);
		label_1.setHorizontalAlignment(SwingConstants.RIGHT);

		JLabel label_2 = new JLabel("\u05DE\u05E1\u05E4\u05E8 \u05D4\u05DE\u05DC\u05D8\u05D4:"+ i );
		label_2.setFont(new Font("David", Font.PLAIN, 14));
		label_2.setBounds(107, 180, 189, 21);
		panel.add(label_2);
		label_2.setHorizontalAlignment(SwingConstants.RIGHT);
		

		JLabel label_3 = new JLabel("\u05D0\u05DD:"+  Mother);
		label_3.setFont(new Font("David", Font.PLAIN, 14));
		label_3.setBounds(156, 228, 140, 14);
		panel.add(label_3);
		label_3.setHorizontalAlignment(SwingConstants.RIGHT);
		
		JLabel label_4 = new JLabel("\u05D0\u05D1:" +  Father);
		label_4.setFont(new Font("David", Font.PLAIN, 14));
		label_4.setBounds(139, 273, 156, 14);
		panel.add(label_4);
		label_4.setHorizontalAlignment(SwingConstants.RIGHT);
		

		
		JLabel label_5 = new JLabel("\u05EA\u05D0\u05E8\u05D9\u05DA \u05DC\u05D9\u05D3\u05D4:"+ DateOfBirth);
		label_5.setFont(new Font("David", Font.PLAIN, 14));
		label_5.setBounds(44, 317, 252, 28);
		panel.add(label_5);
		label_5.setHorizontalAlignment(SwingConstants.RIGHT);
		

		
		JLabel label_10 = new JLabel("\u05D4\u05E2\u05E8\u05D5\u05EA:"+  Comments);
		label_10.setFont(new Font("David", Font.PLAIN, 14));
		label_10.setBounds(54, 368, 242, 14);
		panel.add(label_10);
		label_10.setHorizontalAlignment(SwingConstants.RIGHT);
		
		JLabel label_11 = new JLabel("\u05DB\u05E8\u05D8\u05D9\u05E1 \u05DB\u05DC\u05D1" );
		label_11.setFont(new Font("David", Font.PLAIN, 16));
		label_11.setHorizontalAlignment(SwingConstants.RIGHT);
		label_11.setBounds(68, 31, 130, 21);
		panel.add(label_11);
		
		JButton button_3 = new JButton("\u05D4\u05D5\u05E1\u05E3 \u05DB\u05DC\u05D1 \u05E0\u05D5\u05E1\u05E3");
		button_3.setFont(new Font("David", Font.PLAIN, 14));
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				AddDogWindow newdog=new AddDogWindow();
				newdog.setVisible(true);
				dispose();
				
			}
		});
		button_3.setBounds(242, 414, 122, 23);
		getContentPane().add(button_3);
		
		JButton button_4 = new JButton("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_4.setFont(new Font("David", Font.PLAIN, 14));
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		button_4.setBounds(70, 414, 128, 23);
		getContentPane().add(button_4);
		ImageIcon ic=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_1 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_1.setBounds(-13, -84, 612, 610);
		getContentPane().add(lblNewLabel_1);
		
		ImageIcon ic1=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_2 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_2.setBounds(0, 0, 334, 402);
		panel.add(lblNewLabel_2);
		
	
	
	
		
		
		
		
		
	}
	}

